﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

using TESTCOMLib;

namespace testInvokeEncCom
{
    public partial class SvrSide : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int nRet = 0;
            // server side invoke
            TestClass test = new TestClass();
            nRet = test.OpenSession();
            if (nRet != 0)
            {
                Response.Write("<script>alert('server side invoke error!');</script>");
            }
            else
            {
                Response.Write("<script>alert('server side invoke success!');</script>");
            }
        }
    }
}
